#pragma once

#include <vector>

#include "tm_maya_plugin.h"
#include "..\..\TimidEngine\include\tm_model_types.h"

#include "tm_base_maya_export_target.h"

struct tm_vert
{
	float x, y, z;
};

struct tm_uv
{
	float u, v;
};

class TTMD1ExportTarget: public TBaseMayaExportTarget
{
public:
	MStatus GetOutputPath(MString& target);
	MStatus SaveFile(MString filename);
	
	void AddMesh(TMayaExportMesh& mesh);
private:
	ModelData Data;

	std::vector<TMayaExportMesh> Meshes;

	void Compile();
};